<table id='generic_table'>
  <caption>Cadeiras</caption>
  <thead>
   <tr>
    <th width='70%' >Cadeira</th>
    <th width='15%'>Editar</th>
    <th width='15%'>Remover</th>
   </tr>
  </thead>
  <tbody>
<?
	if($contents)
	foreach($contents as $item)
	{
		$output = "<tr> \n";
		$output .= "<td><a href='/suser/cadeiras/ver/" . $item['id'] . "/'>" . $item['nome'] . "</a></td>\n";
		$output .= "<td><a href='/suser/cadeiras/editar/" . $item['id'] . "/'>" . "<img alt='editar' rel='editar' src='/public/images/icons/pencil.png'>" . "</a></td>\n";
		$output .= "<td><a href='/suser/cadeiras/remover/" . $item['id'] . "/'>" . "<img alt='remover' rel='remover' src='/public/images/icons/delete.png'>" . "</a></td>\n";
		$output .= "</tr>\n";
		echo $output;
	}
?>
  </tbody>
  <tfoot>
   <tr>
    <th colspan=3 ><a href="/suser/cadeiras/adicionar/">Adicionar Cadeira</a></th>
   </tr>
  </tfoot>
 </table>